<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */

use yii\helpers\Html;
use app\assets\AppAsset;
use yii\bootstrap\ActiveForm;

AppAsset::register($this);
$this->title = '分销系统登录界面';
?>

<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, height=device-height,initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title>分销后台管理系统</title>
    <?php $this->head() ?>
</head>
<body style="background-image:url(https://d13yacurqjgara.cloudfront.net/users/23097/screenshots/1858866/my_work_place1a.jpg);background-repeat:no-repeat;background-size: 100%">

<?php $this->beginBody() ?>


<div style="margin: 0px auto;width: 250px;height: 250px;font-size: 30px;text-align: center;line-height: 350px;color: #333">
    分销系统后台登录
</div>

<div style="width: 500px;height: 320px;margin: 0 auto;background-color:rgba(238, 238, 238, 0.48);border-radius: 10px">
    <div style="margin: 0px auto;width: 400px;height: 400px;padding-top: 50px">

        <?php $form = ActiveForm::begin([
            'id' => 'login-form',
            'options' => ['class' => 'form-horizontal'],
        ]); ?>

        <?= $form->field($model, 'username') ?>
        <?= $form->field($model, 'password')->passwordInput() ?>

        <div class="form-group">
            <div class="col-lg-12">
                <?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-block']) ?>
            </div>
        </div>
        <?php ActiveForm::end() ?>
    </div>
</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>;